import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/DirectoryView.vue'),
    },
    {
      path: '/word',
      name: 'word',
      component: () => import('../views/DocView.vue'),
    },
    {
      path: '/excel',
      name: 'excel',
      component: () => import('../views/ExcelView.vue'),
    },
    {
      path: '/excel2',
      name: 'excel2',
      component: () => import('../views/ExcelView2.vue'),
    },
    {
      path: '/v1',
      name: 'v1-home',
      component: () => import('../views/v1/DirectorySelectView.vue'),
    },
    {
      path: '/v1/word',
      name: 'v1-word',
      component: () => import('../views/v1/DocView.vue'),
    },
    {
      path: '/v1/excel',
      name: 'v1-excel',
      component: () => import('../views/v1/ExcelView.vue'),
    },
  ],
})

export default router
